package com.leyou.common.utils.constants;

/**
 * @author 常量类,定义了rabbitMQ的一些相关信息(交换机,队列名),方便生产者和消费者使用
 */
public abstract class MQConstants {

    public static final class Exchange {
        /**
         * 商品服务交换机名称
         */
        public static final String ITEM_EXCHANGE_NAME = "ly.item.exchange96";
    }

    public static final class RoutingKey {
        /**
         * 商品上架的routing-key
         */
        public static final String ITEM_UP_KEY = "item.up96";
        /**
         * 商品下架的routing-key
         */
        public static final String ITEM_DOWN_KEY = "item.down96";
    }

    public static final class Queue{
        /**
         * 搜索服务，商品上架的队列,与es索引库有关
         */
        public static final String SEARCH_ITEM_UP = "search.item.up.queue96";
        /**
         * 搜索服务，商品下架的队列
         */
        public static final String SEARCH_ITEM_DOWN = "search.item.down.queue96";

        /**
         * 搜索服务，商品上架的队列,与静态页有关
         */
        public static final String PAGE_ITEM_UP = "page.item.up.queue96";
        /**
         * 搜索服务，商品下架的队列
         */
        public static final String PAGE_ITEM_DOWN = "page.item.down.queue96";
    }
}